package com.tabs.tabhosts;



import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TabHost;
import android.widget.Toast;

public class TABSActivity extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
   

        TabHost tabs = (TabHost) findViewById(R.id.tabhost1);
        tabs.setup();
        
        TabHost.TabSpec spec1 = tabs.newTabSpec("tab1");
        spec1.setContent(R.id.tab1);
        spec1.setIndicator("Tab 1");
        tabs.addTab(spec1);
    
        TabHost.TabSpec spec2 = tabs.newTabSpec("tab2");
        spec2.setContent(R.id.tab2);
        spec2.setIndicator("Tab 2");
        tabs.addTab(spec2);
        
        TabHost.TabSpec spec3 = tabs.newTabSpec("tab3");
        spec3.setContent(R.id.tab3);
        spec3.setIndicator("Tab 3");
        tabs.addTab(spec3);
        
        
    }

	public void onClick(View v) {
		
		
	}




}